const { src, dest, watch } = require('gulp')
const sass = require('gulp-sass')(require('sass'));

function sassFn() {
    return src('./src/sass/items.scss')
        .pipe(sass().on('error', sass.logError))
        .pipe(dest('./dist/css'));
};

function watchSass(cb) {
    watch(['./src/sass/items.scss'], sassFn);
    cb()
}
exports.wsass = watchSass;